<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Unicode统一码</title>
</head>

<body>
  <script>
    // let café = 1
    // console.log(café);

    const caf\u00e9 = 1
    // const caf\u{E9} = 3
    console.log(caf\u00e9);
    // 按Unicode转义
    console.log('caf\u00e9');//café
    console.log('caf\u{E9}');//café

    console.log('\u0301');// ́
    console.log('cafe\u{301}');//café   和以上的café常量名不同有不同 
    const cafe\u{301} = 2
    console.log(cafe\u{301});
    console.log('\u{1F600}');//😀
  </script>
</body>

</html>